<div class="titlebar">
    <a href="javascript:;" url="{:url('store/chainStoreEdit',['store_id' => $store_id])}" class="button button-blue selectID"> <i class="iconfont icon-add_icon"></i>增加门店</a>
</div>
<table class="table table-border">
<thead>
    <tr>
        <th class="w70 fn-tac">排序</th>
        <th class="w120">付款编码</th>
        <th>门店名称</th>
        <th>门店地址</th>
        <th class="w160">门店电话</th>
        <th class="w80 fn-tac">类型</th>
        <th class="w160">操作</th>
    </tr>
</thead>
<tbody>
    {foreach $lists as $vo}
    <tr>
        <td class="fn-tac"><input name="sort" class="fn-tac w40 input input-mini" type="text" value="{$vo['sort']}" id="{$vo.id}" /></td>
        <td>{$vo.code_id} </td>
        <td>{$vo.title} </td>
        <td>{$vo.address}</td>
        <td>{$vo.telphone}</td>
        <td class="fn-tac"><a class="istop" url="{:url('store/chainType',['id' => $vo.id])}" href="javascript:;" title="置顶/取消">{if $vo.types}<span class="badge bg-green">连锁店</span>{else}<span class="badge">收银台</span>{/if}</a><br /></td class="w80 fn-tac">
        <td class="button-group">
            <a class="button selectID" href="javascript:;" url="{:url('store/chainStoreEdit',['store_id' => $store_id,'id'=>$vo.id])}"><i class="iconfont icon-edit"></i>编辑</a>
            <a class="button isDel" url="{:url('store/chainDelete',['id' => $vo.id])}" href="javascript:;"><i class="iconfont icon-lajixiang"></i>删除</a>
        </td>
    </tr>
    {/foreach}
</tbody>
</table>
{$lists|raw}
<script type="text/javascript">
Do('base','form','layer','tip','date', function () {
    sort("{:url('store/chainSort')}");
    $('.isDel').isDel();
    $('.istop').actUrl()
    $(".selectID").win({reload:1,area:['800px','400px']});
})
</script>
